package com.sdtele.tta.operation;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.sdtele.tta.dac.Dac;
import com.sdtele.tta.models.JsonRequest;
import com.sdtele.tta.models.JsonResponse;
import com.sdtele.tta.models.Team;
import com.sdtele.tta.models.User;
import com.sdtele.tta.utils.TeamUtils;

/**
 * 操作类实现：GetUser(json.operation=getUser)
 * @author XCream
 */
public class OperationGetUserByTeam extends Operation {

	@Override
	public JsonResponse handle(JsonRequest jsonRequest) {				
		JsonResponse jres = new JsonResponse();
		List<User> userList=new ArrayList();
		long teamId=jsonRequest.getJsonObject().getAsLong();
		userList=Dac.getInstance().getUserbyteamId(teamId);
		if(!request.getSession().equals(null)) {
			jres.setStatus(0);
			jres.setMessage("");
			jres.setEntity(userList);
		}		
		return jres;		
	}

}
